package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

@Entity
public class Zorderdetails {
    private int orderdetailId;//订单详情
    private Qproductdetail prodetailId;//产品
    private Zorder orderId;//订单
    private Integer orderdetailNumber;//订单详情购买数量
    private Integer orderdetailRealitynum;//订单详情实际数量
    private Integer orderdetailJfnumber;//订单详情剩余交付数量
    private BigDecimal orderdetailTital;//订单详情小计
    private String orderdetailDiscount;//订单详情折扣
    private Integer orderdetailWxnum;//订单详情维修数量
    private BigDecimal orderdetailJg;//订单详情产品售价

    @Id
    @Column(name = "orderdetail_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getOrderdetailId() {
        return orderdetailId;
    }

    public void setOrderdetailId(int orderdetailId) {
        this.orderdetailId = orderdetailId;
    }

    @ManyToOne
    @JoinColumn(name = "prodetail_id", referencedColumnName = "prodetail_id")
    public Qproductdetail getProdetailId() {
        return prodetailId;
    }

    public void setProdetailId(Qproductdetail prodetailId) {
        this.prodetailId = prodetailId;
    }

    @ManyToOne
    @JoinColumn(name = "order_id", referencedColumnName = "order_id")
    public Zorder getOrderId() {
        return orderId;
    }

    public void setOrderId(Zorder orderId) {
        this.orderId = orderId;
    }

    @Basic
    @Column(name = "orderdetail_number")
    public Integer getOrderdetailNumber() {
        return orderdetailNumber;
    }

    public void setOrderdetailNumber(Integer orderdetailNumber) {
        this.orderdetailNumber = orderdetailNumber;
    }

    @Basic
    @Column(name = "orderdetail_jg")
    public BigDecimal getOrderdetailJg() {
        return orderdetailJg;
    }

    public void setOrderdetailJg(BigDecimal orderdetailJg) {
        this.orderdetailJg = orderdetailJg;
    }

    @Basic
    @Column(name = "orderdetail_realitynum")
    public Integer getOrderdetailRealitynum() {
        return orderdetailRealitynum;
    }

    public void setOrderdetailRealitynum(Integer orderdetailRealitynum) {
        this.orderdetailRealitynum = orderdetailRealitynum;
    }

    @Basic
    @Column(name = "orderdetail_jfnumber")
    public Integer getOrderdetailJfnumber() {
        return orderdetailJfnumber;
    }

    public void setOrderdetailJfnumber(Integer orderdetailJfnumber) {
        this.orderdetailJfnumber = orderdetailJfnumber;
    }

    @Basic
    @Column(name = "orderdetail_tital")
    public BigDecimal getOrderdetailTital() {
        return orderdetailTital;
    }

    public void setOrderdetailTital(BigDecimal orderdetailTital) {
        this.orderdetailTital = orderdetailTital;
    }

    @Basic
    @Column(name = "orderdetail_discount")
    public String getOrderdetailDiscount() {
        return orderdetailDiscount;
    }

    public void setOrderdetailDiscount(String orderdetailDiscount) {
        this.orderdetailDiscount = orderdetailDiscount;
    }

    @Basic
    @Column(name = "orderdetail_wxnum")
    public Integer getOrderdetailWxnum() {
        return orderdetailWxnum;
    }

    public void setOrderdetailWxnum(Integer orderdetailWxnum) {
        this.orderdetailWxnum = orderdetailWxnum;
    }

}
